package lt.inkredibl.swing;

import javax.swing.Icon;
import javax.swing.KeyStroke;

public abstract class AbstractAction
	extends javax.swing.AbstractAction
{

	public void setName(String name)
	{
		putValue(NAME, name);
	}

	public void setShortDescription(String desc)
	{
		putValue(SHORT_DESCRIPTION, desc);
	}

	public void setLongDescription(String desc)
	{
		putValue(LONG_DESCRIPTION, desc);
	}

	public void setSmallIcon(Icon ico)
	{
		putValue(SMALL_ICON, ico);
	}

	public void setActionCommand(String command)
	{
		putValue(ACTION_COMMAND_KEY, command);
	}

	public void setAccelerator(KeyStroke acc)
	{
		putValue(ACCELERATOR_KEY, acc);
	}

	/**
	 * @param mnem - KeyEvent constant
	 */
	public void setMnemonic(int mnem)
	{
		putValue(MNEMONIC_KEY, Integer.valueOf(mnem));
	}
// 1.6
//	public void setLargeIcon(Icon ico)
//	{
//		putValue(LARGE_ICON_KEY, ico);
//	}
//
//	public void setSelected(boolean selected)
//	{
//		putValue(SELECTED_KEY, selected);
//	}
//
//	public void setDisplayedMnemonicIndex(int index)
//	{
//		putValue(DISPLAYED_MNEMONIC_INDEX_KEY, index);
//	}

}